package com.pearl.jacksoncore.demo.feature;

/**
 * @author TD
 * @version 1.0
 * @date 2024/4/2
 */
public enum Color {
    RED("FF0000"),
    GREEN("00FF00"),
    BLUE("0000FF");

    private final String hexCode;

    Color(String hexCode) {
        this.hexCode = hexCode;
    }

    @Override
    public String toString() {
        return hexCode; // 返回自定义的字符串表示
    }
}
